package login

import (
	"context"

	"2106A-zg6/baidu/gateway/internal/svc"
	"2106A-zg6/baidu/gateway/internal/types"

	"github.com/zeromicro/go-zero/core/logx"
)

type ReturnLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewReturnLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReturnLogic {
	return &ReturnLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *ReturnLogic) Return(req *types.ReturnRequest) (resp *types.Response, err error) {
	return &types.Response{
		Msg:  "支付成功",
		Code: 200,
		Data: nil,
	}, nil
}
